home *** CD-ROM | disk | FTP | other *** search
Makefile | 1991-05-31 | 1.9 KB | 59 lines | [TEXT/MPS ] |
- #################################################################################
- # File: MakeFile for the TESample Application (The C Version) #
- # Target: TESample #
- #################################################################################
-
- ApplName = TESample ### Whatever you like, but try to be descriptive
-
- Creator = 'XTND' ### This may be changed if you like
- Type = 'APPL' ### This must not be changed
-
- SymOptions = -sym off ### Turn symbols on if you need to debug
- COptions = -r {SymOptions} ### Use whatever you find useful
-
- Sources = TESample.c ∂
- TE_FileIO.c ### For documentation only, not used by make
-
- XTNDLibPath = :::XTND Headers:XTNDLibraries: ### Change this if you reorganize the folder structure
- HeaderPath = :::XTND Headers:XTNDCIncludes: ### Change this if you reorganize the folder structure
-
- Headers = TESample.h ∂
- "{HeaderPath}"XTNDInterface.h
-
-
- ObjFiles = TESample.c.o ∂
- TE_FileIO.c.o ∂
- TESampleGlue.a.o ∂
- "{XTNDLibPath}"XTNDInterfaceLib.o ∂
- "{Libraries}"Runtime.o ∂
- "{Libraries}"Interface.o ### Object code files to be linked into the application
-
-
- ### Default Dependency/Build Rule
-
- .c.o ƒ .c MacIncludes {Headers}
- C {Default}.c {COptions} -r
-
-
- ### This copies the resources from TESample.r into the application. It deletes the
- ### old resource fork before adding the new resources. This must be the first
- ### dependency for the target file, since it deletes all existing resources.
- ### It then sets the Creator and Type, and sets the bundle bit
-
- {ApplName} ƒƒ TESample.r TESample.h MakeFile
- Rez TESample.r -o {ApplName}
- SetFile -a B {ApplName} -c {Creator} -t {Type}
-
-
- ### This links the object code into the application
-
- {ApplName} ƒƒ {ObjFiles} MakeFile
- Link {ObjFiles} {SymOptions} -o {ApplName}
-
-
- ### This dumps the precompiled headers into MacIncludes
-
- MacIncludes ƒ MacIncludes.h
- C MacIncludes.h {COptions} -o Null.c.o
- delete -i Null.c.o
-